<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>test</title>
</head>
<body>
<button onclick="f()">Copy Text</button>

<script type="text/javascript">
    //在这里面写你的js代码
    const name = "The windows";
    alert(name)
    const object = {
        name: "My Object",
        getNameFunc: function () {
                f1(this)
        }
    };
    function f1() {
        return this.name
    }
    function f() {
        alert(object.getNameFunc()());
    }
    //     function f1() {
    //         var n = 99;
    //         function f2() {
    //             alert(n);
    //         }
    //         return f2();
    //     }
    // f1();
</script>
</body>

</html>